package com.yh.dp.principle.isp;

/**
 * @ClassName PrettyGirl
 * @Description 美女实现类
 * @Author 0715-YuHao
 * @Date 2021/1/3 16:55
 */
public class PrettyGirl implements IGoodBodyGirl, IGreatTemperamentGirl {

    private String name;

    public PrettyGirl() {
    }

    public PrettyGirl(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void goodLooking() {
        System.out.println(this.name + "面容：倾国倾城比天仙");
    }

    @Override
    public void niceFigure() {
        System.out.println(this.name + "身材：窈窕淑女赛西施");
    }

    @Override
    public void greatTemperament() {
        System.out.println(this.name + "气质：亭亭玉立似贵妃");
    }

    @Override
    public void show() {
        goodLooking();
        niceFigure();
        greatTemperament();
    }
}
